import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import axios from 'axios'
import { Lazyload } from 'vant';
import rem from './rem';
axios.defaults.baseURL="http://127.0.0.1:3000"
axios.defaults.baseURL="http://localhost:3000/"
Vue.prototype.axios=axios;

Vue.use(Lazyload);
Vue.config.productionTip = false




//配置Vant
import Vant from 'vant';
import 'vant/lib/index.css';
//引入具名插槽
import Vmap from './views/Vmap.vue'
Vue.component('fymap',Vmap);

// 引入折线图
import LineChart1 from './components/LineChart1.vue'
Vue.component('LineChart1',LineChart1);

import LineChart2 from './components/LineChart2.vue'
Vue.component('LineChart2',LineChart2);

import LineChart3 from './components/LineChart3.vue'
Vue.component('LineChart3',LineChart3);

import LineChart4 from './components/LineChart4.vue'
Vue.component('LineChart4',LineChart4);

import LineChart from './views/LineChart.vue'
Vue.component('LineChart',LineChart)


//引入自定义模块 全局组件
import Mytabbar from './components/Mytabbar'
import Mytool from './components/Mytool'
import Myheader from './components/Myheader'
Vue.component("my-tabbar", Mytabbar)
Vue.component("my-tool", Mytool)
Vue.component("my-header", Myheader)



Vue.use(Vant);
new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
